package com.liao.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author itcast
 */
@Data
@TableName("goods")
@ApiModel(value="商品对象", description="商品信息")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    @ApiModelProperty(value = "商品名")
    private String gname;

    @ApiModelProperty(value = "商品默认图片地址")
    private String defaultImg;

    @ApiModelProperty(value = "商品价格")
    private Integer price;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creatdate;

    @ApiModelProperty(value = "商品的数量")
    private Integer num;

    @ApiModelProperty(value = "商品地址")
    private String address;

    private Integer tid;

    @ApiModelProperty(value = "商品发布状态")
    private Integer publishStatus;


}
